<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page import=" com.ejoysoft.common.Constants"%>
<%@page import="com.ejoysoft.wlanyz.business.FrePoint"%>
<%@page import="com.ejoysoft.wlanyz.business.Ac"%>
<%@ include file="../include/jsp/head.jsp"%>
<%try{
    FrePoint obj=new FrePoint(globa,true);
    String strUrl="topology_show.jsp";   
    String acId = ParamUtil.getString(request,"deviceid","");
    System.out.println(acId);
    Ac obj1 = new Ac(globa);
    Ac obj2 = obj1.show(" where strId='"+acId+"'");
    String acName = obj2==null?"":obj2.getClassTwoAC();
    if(action.equals(Constants.BACK_STR))  {
        globa.dispatch(obj.backUpByAcName(acName),strUrl+"?classTwoACName="+acId);
    } else if(action.equals(Constants.RESTORE_STR)){
        globa.dispatch(obj.restoreByAcName(acName),strUrl+"?classTwoACName="+acId);
    }  
    //关闭数据库连接对象
    globa.closeCon();
	}catch(Exception e){
	e.printStackTrace();}
%>